package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.model.PrintTreeLevelConfig;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PrintTreeLevelConfigMapper extends FsMapper<PrintTreeLevelConfig> {

    /**
     * 查询当前用户解锁的树的数量
     * @param printCount
     * @return
     */
    List<PrintTreeLevelConfig> queryCurrentTreeCount(@Param("printCount") int printCount);

    /**
     * 查询当前所解锁的最高级别树种
     * @param printCount
     * @return
     */
    PrintTreeLevelConfig queryCurrentTopLevelTree(@Param("printCount") int printCount);

    /**
     * 查询当前浇水次数对应的上一颗树的信息
     * @param printCount
     * @return
     */
    PrintTreeLevelConfig queryPreviousTree(@Param("printCount") int printCount);
}